import React, { Component } from 'react'
import RouterLink from '../router/RouterLink';
import RouterView from '../router/RouterView';

export class Home extends Component {
  render() {
      const { routerConfig } = this.props;
    return (
      <div className='home'>
          {/* 二级路由展示页面 */}
          <main>
              <RouterView routerConfig= { routerConfig }></RouterView>
          </main>

          {/* 二级路由底部切换按钮  */}
          <footer>
              <RouterLink routerConfig= { routerConfig }></RouterLink>
          </footer>
      </div>
    )
  }
}

export default Home